<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .box{width: 100px;height: 100px;background: red;position: absolute;left:0;top:0;}
    </style>
</head>
<body>
    <div class="box"></div>
</body>
<script src="./move.js"></script>
<script>
    var obox = document.querySelector(".box")

    document.onclick = function(){
        move(obox, {left: 400}, function(){
            obox.style.background = "yellow";
        })
    }

</script>
</html>